package com.codi.bus.core.service;

import com.codi.bus.core.domain.FundCombinationHistory;
import com.codi.bus.core.resultModel.FundCombinationHistoryResult;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

public interface FundCombinationHistoryService {
    int add(FundCombinationHistory fundCombinationHistory);

    List<FundCombinationHistoryResult> queryByDate(String type, String combinationCode);

    List<FundCombinationHistory> queryByTradeDay(String combinationCode, Date tradeDate);

    Page<FundCombinationHistory> queryByPage(Pageable pageable);

    Page<FundCombinationHistory> queryByPageAndCombinationCode(Pageable pageable, String combinationCode);

    int delete(Long combinationId);

    FundCombinationHistory queryById(Long combinationId);

    int updateById(FundCombinationHistory fundCombinationHistory);

    int insertFundHistory(FundCombinationHistory fundCombinationHistory);
}
